FROM httpd:alpine

# 定义环境变量，设置时区时使用
# ENV TIME_ZONE Asia/Shanghai
# RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

# RUN echo "extension=php_gd2.dll" >> "$PHP_INI_DIR/php-update.ini"

# RUN docker-php-ext-install pdo pdo_mysql

# RUN docker-php-source extract \
#     && docker-php-source delete

# RUN apt-get update && apt-get install -y \
#         libfreetype6-dev \
#         libjpeg62-turbo-dev \
#         libpng-dev \
#     && docker-php-ext-configure gd --with-freetype --with-jpeg \
#     && docker-php-ext-install -j$(nproc) gd

# RUN pecl install redis-5.1.1 \
#     && pecl install xdebug-2.8.1 \
#     && docker-php-ext-enable redis xdebug

# RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \
#     && pecl install memcached-2.2.0 \
#     && docker-php-ext-enable memcached

# RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz' -o xcache.tar.gz \
#     && mkdir -p /tmp/xcache \
#     && tar -xf xcache.tar.gz -C /tmp/xcache --strip-components=1 \
#     && rm xcache.tar.gz \
#     && docker-php-ext-configure /tmp/xcache --enable-xcache \
#     && docker-php-ext-install /tmp/xcache \
#     && rm -r /tmp/xcache

COPY src/ /usr/local/apache2/htdocs/

# docker push tfs.weberp.com.cn/mydocker/php/phpinfo:latest